package com.cloudDemoOrder.service;

import com.alibaba.fastjson.JSONObject;
import entity.Order;

import java.util.List;

/**
 * order表业务接口
 *
 * @author Daft_V
 * @date 2022/5/6 9:58
 */
public interface OrderService {
    /**
     * 查询order列表
     *
     * @return
     */
    List<Order> orderList();

    /**
     * 根据id查询order
     *
     * @param id 主键
     * @return Order
     */
    Order queryOrderById(int id);

    /**
     * 添加订单表
     * @param uid 用户id
     * @param pid 商品id
     * @return Boolean
     */
    JSONObject insertOrder(int uid, int pid, int number);
}
